import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import { Message } from 'element-ui'

Vue.config.productionTip = false
Vue.prototype.$message = Message

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

const api = axios.create({
  baseURL: 'http://localhost:8000',
  withCredentials: true, // 如果需要跨域携带cookie
  headers: {
    'Content-Type': 'application/json'
  }
})

api.interceptors.request.use()
